package com.totem.product.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
public class ProductSpecVO implements Serializable {
    private Long id;
    private Long productId;
    @NotNull
    @Schema(description="售价")
    private BigDecimal price;
    @Schema(description="库存")
    private Integer inventory;
    @NotNull
    @Schema(description="可用库存")
    private Integer usable;
    @NotEmpty
    @Schema(description="CDKEY")
    private String cdkey;
}
